<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_ticket_voucher.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_ticket_voucher.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_ticket_voucher',
                    name: 'T_ticket_voucher',
                    url: "/T_ticket_voucher/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_access_list":"","c_order_item_id":"","c_over_ladder_interval":"","c_over_ladder_price":"","c_price":"","c_remain":"","c_remark":"","c_savings":"","c_sku_id":"","c_source":"","c_order_id":"","c_start_interval":"","c_status":"","c_surplus_savings":"","c_surplus_used_deposit":"","c_ticket_deposit":"","c_times":"","c_type":"","c_use_end_time":"","c_used_deposit":"","c_vip_type":"","c_start_time":"","c_name2":"","c_name":"","c_ladder_price":"","c_activate_time":"","c_amount":"","c_base_savings":"","c_card_id":"","c_child_count":"","c_continue_time":"","c_create_time":"","c_date":"","c_deposit":"","c_disabled":"","c_discount":"","c_duration":"","c_duration_gift":"","c_end_interval":"","c_end_time":"","c_forzen":"","c_id":"","c_is_child":"","c_item_category_id":"","c_item_category_name":"","c_ladder_interval":"","c_with_card_back":"","c_with_card_cons":""},
                editFormOptions: [[{"title":"c_access_list","field":"c_access_list","type":"text"},
                               {"title":"c_order_item_id","field":"c_order_item_id","type":"text"},
                               {"title":"c_over_ladder_interval","field":"c_over_ladder_interval","type":"text"},
                               {"title":"c_over_ladder_price","field":"c_over_ladder_price","type":"text"}],
                              [{"title":"c_price","field":"c_price","type":"text"},
                               {"title":"c_remain","field":"c_remain","type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"},
                               {"title":"储蓄金","field":"c_savings","type":"text"}],
                              [{"title":"c_sku_id","field":"c_sku_id","type":"text"},
                               {"title":"c_source","field":"c_source","type":"text"},
                               {"title":"c_order_id","field":"c_order_id","type":"text"},
                               {"title":"c_start_interval","field":"c_start_interval","type":"text"}],
                              [{"title":"状态","field":"c_status","type":"text"},
                               {"title":"c_surplus_savings","field":"c_surplus_savings","type":"text"},
                               {"title":"c_surplus_used_deposit","field":"c_surplus_used_deposit","type":"text"},
                               {"title":"c_ticket_deposit","field":"c_ticket_deposit","type":"text"}],
                              [{"title":"c_times","field":"c_times","type":"datetime"},
                               {"title":"c_type","field":"c_type","type":"text"},
                               {"title":"c_use_end_time","field":"c_use_end_time","disabled":true,"type":"text"},
                               {"title":"c_used_deposit","field":"c_used_deposit","type":"text"}],
                              [{"title":"c_vip_type","field":"c_vip_type","type":"text"},
                               {"title":"c_start_time","field":"c_start_time","disabled":true,"type":"text"},
                               {"title":"c_name2","field":"c_name2","type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"}],
                              [{"title":"c_ladder_price","field":"c_ladder_price","type":"text"},
                               {"title":"c_activate_time","field":"c_activate_time","disabled":true,"type":"text"},
                               {"title":"余额","field":"c_amount","type":"text"},
                               {"title":"c_base_savings","field":"c_base_savings","type":"text"}],
                              [{"title":"c_card_id","field":"c_card_id","disabled":true,"type":"text"},
                               {"title":"c_child_count","field":"c_child_count","type":"text"},
                               {"title":"c_continue_time","field":"c_continue_time","type":"text"},
                               {"title":"办理时间","field":"c_create_time","disabled":true,"type":"datetime"}],
                              [{"title":"c_date","field":"c_date","type":"text"},
                               {"title":"押金","field":"c_deposit","type":"text"},
                               {"title":"弃用","field":"c_disabled","type":"text"},
                               {"title":"折扣","field":"c_discount","type":"text"}],
                              [{"title":"c_duration","field":"c_duration","type":"text"},
                               {"title":"c_duration_gift","field":"c_duration_gift","type":"text"},
                               {"title":"c_end_interval","field":"c_end_interval","type":"text"},
                               {"title":"c_end_time","field":"c_end_time","disabled":true,"type":"text"}],
                              [{"title":"c_forzen","field":"c_forzen","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"是否为子卡","field":"c_is_child","type":"text"},
                               {"title":"c_item_category_id","field":"c_item_category_id","type":"text"}],
                              [{"title":"c_item_category_name","field":"c_item_category_name","type":"text"},
                               {"title":"c_ladder_interval","field":"c_ladder_interval","type":"text"},
                               {"title":"是否允许单独退卡","field":"c_with_card_back","type":"text"},
                               {"title":"是否允许消费","field":"c_with_card_cons","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_access_list',title:'c_access_list',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_order_item_id',title:'c_order_item_id',type:'string',width:120,align:'left'},
                       {field:'c_over_ladder_interval',title:'c_over_ladder_interval',type:'string',width:120,align:'left'},
                       {field:'c_over_ladder_price',title:'c_over_ladder_price',type:'string',width:120,align:'left'},
                       {field:'c_price',title:'c_price',type:'decimal',width:120,align:'left'},
                       {field:'c_remain',title:'c_remain',type:'int',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_savings',title:'储蓄金',type:'decimal',width:120,align:'left'},
                       {field:'c_sku_id',title:'c_sku_id',type:'string',width:120,align:'left'},
                       {field:'c_source',title:'c_source',type:'string',width:120,align:'left'},
                       {field:'c_order_id',title:'c_order_id',type:'string',width:120,align:'left'},
                       {field:'c_start_interval',title:'c_start_interval',type:'string',width:120,align:'left'},
                       {field:'c_status',title:'状态',type:'int',width:120,align:'left'},
                       {field:'c_surplus_savings',title:'c_surplus_savings',type:'decimal',width:120,align:'left'},
                       {field:'c_surplus_used_deposit',title:'c_surplus_used_deposit',type:'decimal',width:120,align:'left'},
                       {field:'c_ticket_deposit',title:'c_ticket_deposit',type:'decimal',width:120,align:'left'},
                       {field:'c_times',title:'c_times',type:'int',width:120,align:'left'},
                       {field:'c_type',title:'c_type',type:'string',width:120,align:'left'},
                       {field:'c_use_end_time',title:'c_use_end_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_used_deposit',title:'c_used_deposit',type:'decimal',width:120,align:'left'},
                       {field:'c_vip_type',title:'c_vip_type',type:'int',width:120,align:'left'},
                       {field:'c_start_time',title:'c_start_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_name2',title:'c_name2',type:'string',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_ladder_price',title:'c_ladder_price',type:'string',width:120,align:'left'},
                       {field:'c_activate_time',title:'c_activate_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_amount',title:'余额',type:'decimal',width:120,align:'left'},
                       {field:'c_base_savings',title:'c_base_savings',type:'decimal',width:120,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_child_count',title:'c_child_count',type:'int',width:120,align:'left'},
                       {field:'c_continue_time',title:'c_continue_time',type:'decimal',width:120,align:'left'},
                       {field:'c_create_time',title:'办理时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_date',title:'c_date',type:'string',width:120,align:'left'},
                       {field:'c_deposit',title:'押金',type:'decimal',width:120,align:'left'},
                       {field:'c_disabled',title:'弃用',type:'sbyte',width:120,align:'left'},
                       {field:'c_discount',title:'折扣',type:'decimal',width:120,align:'left'},
                       {field:'c_duration',title:'c_duration',type:'decimal',width:120,align:'left'},
                       {field:'c_duration_gift',title:'c_duration_gift',type:'decimal',width:120,align:'left'},
                       {field:'c_end_interval',title:'c_end_interval',type:'string',width:120,align:'left'},
                       {field:'c_end_time',title:'c_end_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_forzen',title:'c_forzen',type:'sbyte',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_is_child',title:'是否为子卡',type:'sbyte',width:120,align:'left'},
                       {field:'c_item_category_id',title:'c_item_category_id',type:'string',width:120,align:'left'},
                       {field:'c_item_category_name',title:'c_item_category_name',type:'string',width:120,align:'left'},
                       {field:'c_ladder_interval',title:'c_ladder_interval',type:'string',width:120,align:'left'},
                       {field:'c_with_card_back',title:'是否允许单独退卡',type:'sbyte',width:120,align:'left'},
                       {field:'c_with_card_cons',title:'是否允许消费',type:'sbyte',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
